package com.egoo.ticket.server.taskschedul.repeattimeoutscanningresolve.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @Author: Donny_dong
 * @Description: 分布式锁注解
 * @Param:
 * @return:
 * @Date: 2021/1/4
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Documented
public @interface RedisLock {
	/**锁前缀*/
	String lockPrefix() default "";
	/**锁名*/
	String lockKey() default "";
	/**过期时间*/
	long timeOut() default 20;
	TimeUnit timeUnit() default TimeUnit.SECONDS;
}
